/**
 * TabBar.h by Giraldo Rosales.
 * Visit www.liquidgear.net for documentation and updates.
 *
 * Copyright (c) 2009 Nitrogen Design, Inc. All rights reserved.
 * 
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 * 
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 **/
#if LG_USE_TABBAR

@class WebController;

@interface TabBar : UIViewController<UITabBarDelegate> {
	WebController *viewController;
	UITabBar *tabBar;
	NSMutableArray *tabButtons;
	
	UITabBarItem *btn1;
	UITabBarItem *btn2;
	UITabBarItem *btn3;
	UITabBarItem *btn4;
	UITabBarItem *btn5;
	
	NSString *btnLink1;
	NSString *btnLink2;
	NSString *btnLink3;
	NSString *btnLink4;
	NSString *btnLink5;
}

@property (nonatomic, retain) WebController *viewController;
@property (nonatomic, retain) UITabBar *tabBar;
@property (nonatomic, retain) NSMutableArray *tabButtons;

@property (nonatomic, retain) UITabBarItem *btn1;
@property (nonatomic, retain) UITabBarItem *btn2;
@property (nonatomic, retain) UITabBarItem *btn3;
@property (nonatomic, retain) UITabBarItem *btn4;
@property (nonatomic, retain) UITabBarItem *btn5;

@property (nonatomic, retain) NSString *btnLink1;
@property (nonatomic, retain) NSString *btnLink2;
@property (nonatomic, retain) NSString *btnLink3;
@property (nonatomic, retain) NSString *btnLink4;
@property (nonatomic, retain) NSString *btnLink5;

- (id)initWithController:(WebController *)controller;
- (void)setSelected:(int)btnNum;
- (void)setBadge:(int)btnNum value:(NSString*)value;
- (UITabBarSystemItem)systemButton:(NSString*)type;
- (void)addTab:(int)num title:(NSString *)title icon:(NSString *)icon callback:(NSString *)callback;
- (void)removeTab:(int)num;
- (void)resetTabs;
- (void)showBar;
- (void)hideBar;

@end
#endif